﻿<Window x:Class="HomeWork2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="555">
    <TabControl>
        <TabItem Header="Ex2">
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition ></RowDefinition>
                    <RowDefinition ></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition>
                    </ColumnDefinition>
                    <ColumnDefinition>
                    </ColumnDefinition>
                    <ColumnDefinition>
                    </ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Content="1" Grid.Column="0" Grid.Row="0"></Button>
                <Button Content="2" Grid.Column="1" Grid.Row="0"></Button>
                <Button Content="3" Grid.Column="2" Grid.Row="0"></Button>
                <Button Content="4" Grid.Column="0" Grid.Row="1"></Button>
                <Button Content="5" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2"></Button>
                <GridSplitter Grid.Column="0" Width="10" Background="Red" ></GridSplitter>
                <GridSplitter Grid.Column="1" Width="10" Background="Green"></GridSplitter>
                <GridSplitter Grid.Column="1" Width="10" Background="Green"></GridSplitter>
                <GridSplitter Grid.Row="1" Grid.RowSpan="2" Grid.Column="1"></GridSplitter>
            </Grid>
        </TabItem>
        <TabItem Header="Ex1">
            <StackPanel Orientation="Horizontal">
                <Button Content="SomeText 1"/>
                <Button Content="SomeText 2"/>
                <Button Content="SomeText 3"/>
                <StackPanel Orientation="Horizontal">
                    <Viewbox>
                        <StackPanel>
                            <Button Content="Text4"/>
                            <Button Content="Text5"/>
                            <Button Content="Text6"/>
                            <Button Content="Text7"/>
                        </StackPanel>
                    </Viewbox>
                </StackPanel>
                <DockPanel LastChildFill="True">
                    <Button Content="SomeText8" DockPanel.Dock="Top"/>
                    <Button Content="SomeText9" DockPanel.Dock="Left"/>
                    <Button Content="SomeText10" DockPanel.Dock="Bottom"/>
                    <Button Content="SomeText11" DockPanel.Dock="Right"/>
                    <Button Content="SomeText12" />
                </DockPanel>
            </StackPanel>
        </TabItem>
        <TabItem Header="Ex3">
            <Canvas Background="AntiqueWhite" Width="330" HorizontalAlignment="Left" VerticalAlignment="Top" Height="200">
                <WrapPanel Width="150" Height="100" VerticalAlignment="Top" HorizontalAlignment="Left">
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                    <Button Content="ButtOn" ></Button>
                </WrapPanel>
                <Canvas Canvas.Left="160" Background="Lime" Width="150" Height="100">
                    <Button Canvas.Left="30" Canvas.Top="30" Padding="5">Hello I am button</Button>
                    <Button Canvas.Left="45" Canvas.Top="45">Hello I am button</Button>
                </Canvas>
                <Canvas Canvas.Top="100" Background="Bisque" Width="150" Height="100">
                    <Button Canvas.Left="45" Canvas.Top="35">
                        Button
                    </Button>
                </Canvas>
            </Canvas>
        </TabItem>
    </TabControl>

</Window>
